import { defineStore } from "pinia"
import { ref } from "vue"

export const menuStore = defineStore('menuStore', () => {
    const isCollapse = ref(false)
    const commonWidth = ref('180px')
    const collapseWidth = ref('60px')
    const changeCollapse = () => {
        isCollapse.value = !isCollapse.value
    }

    return {
        isCollapse,
        changeCollapse,
        commonWidth,
        collapseWidth
    }
}
)